package com.hqyj.shop.pojo;

public class Cart {
    private int cartId;
    private int userId;
    private String userName;
    private String userNick;
    private String phone;
    private String address;
    private int goodsId;
    private String goodsName;
    private double price;
    private int number;
    private double total;

    public Cart(int cartId, int userId, String userName, String userNick, String phone, String address, int goodsId, String goodsName, double price, int number, double total) {
        this.cartId = cartId;
        this.userId = userId;
        this.userName = userName;
        this.userNick = userNick;
        this.phone = phone;
        this.address = address;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.price = price;
        this.number = number;
        this.total = total;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cartId=" + cartId +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userNick='" + userNick + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", total=" + total +
                '}';
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public Cart() {
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
